<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no"/>-->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="web description is me">
    <meta name="author" content="wangqinmin">
    <link rel="icon" href="../img/icon/B.ico">
    <title>栅格系统的原理</title>
    <link rel="stylesheet" href="../bootstrap-3.3.7/css/bootstrap.css"/>
    <link rel="stylesheet" href="../bootstrap-3.3.7/css/bootstrap-theme.css"/>
    <link href="../css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    <link href="../css/starter-template.css" rel="stylesheet">
    <script type="text/javascript" src="../jquery-3.3.1/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="../bootstrap-3.3.7/js/bootstrap.js"></script>
    <style type="text/css">
        div {
            border: 1px #0f0f0f solid
        }

        /* 超小屏幕（手机，小于 768px） */
        /* 没有任何媒体查询相关的代码，因为这在 Bootstrap 中是默认的（还记得 Bootstrap 是移动设备优先的吗？） */
        @media (min-width: 1px) {
            div {
                background: #3c763d;
            }
        }

        /* 小屏幕（平板，大于等于 768px） */
        @media (min-width: 768px) {
            div {
                background: #1b6d85
            }
        }

        /* 中等屏幕（桌面显示器，大于等于 992px） */
        @media (min-width: 992px) {
            div {
                background: ThreeDFace
            }
        }

        /* 大屏幕（大桌面显示器，大于等于 1200px） */
        @media (min-width: 1200px) {
            div {
                background: orange
            }
        }
    </style>
</head>

<!-- container：作用相当于一个自动居中的容器(用的地方很多，不然样式可能难看) -->
<!-- container-fluid：占满全屏 -->
<body class="container-fluid" background="#ffff">

<!-- row可以 与 col-lg... 配合快速创建栅格布局 -->
<div class="row">
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
    <div class="col-lg-1">姓名</div>
</div>
<br/>
<div class="row">
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
    <div class="col-md-1">姓名</div>
</div>
<br/>
<div class="row">
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
    <div class="col-sm-1">姓名</div>
</div>
<br/>
<div class="row">
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
    <div class="col-xs-1">姓名</div>
</div>
<br/>
<div class="row">
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
    <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">姓名</div>
</div>
<br/>
<hr/>
<div class="row">
    <div class="col-md-8">.col-md-8</div>
    <div class="col-md-4">.col-md-4</div>
</div>
<hr/>
<div class="row">
    <div class="col-md-4">.col-md-4</div>
    <div class="col-md-4">.col-md-4</div>
    <div class="col-md-4">.col-md-4</div>
</div>
<hr/>
<div class="row">
    <div class="col-md-6">.col-md-6</div>
    <div class="col-md-6">.col-md-6</div>
</div>
<hr/>


<div class="row">
    <div class="col-xs-2">.col-xs-2</div>
    <div class="col-xs-2">.col-xs-2</div>
    <div class="col-xs-2">.col-xs-2</div>
    <div class="col-xs-2">.col-xs-2</div>
    <div class="col-xs-2">.col-xs-2</div>
    <div class="col-xs-2">.col-xs-2</div>
    <div class="col-md-2">.col-md-1</div>
    <div class="col-md-2">.col-md-1</div>
    <div class="col-md-2">.col-md-1</div>
</div>
<hr/>
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
    <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
    <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<hr/>
<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
<div class="row">
    <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
    <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
    <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<hr/>
<!-- Columns are always 50% wide, on mobile and desktop -->
<div class="row">
    <div class="col-xs-6">.col-xs-6</div>
    <div class="col-xs-6">.col-xs-6</div>
</div>
<hr/>
</body>
</html>